package helen.core.net;

import java.io.IOException;
import java.io.InputStream;
import java.net.CookieStore;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.http.params.CoreConnectionPNames;

import helen.core.iinterface.ExceptionListener;


public class HttpServiceClient {
	private ExceptionListener listener = null;

	public ExceptionListener getListener()
	{
		return listener;
	}

	public void setListener(ExceptionListener listener)
	{
		this.listener = listener;
	}

	public String doGet(String url, Map<String, String> addtionalParams) {
		String result = null;
		result = HttpUtils.submitPostData(url,addtionalParams,"UTF-8");
		return result;
	}

	public String doPost(String url, Map<String, String> addtionalParams) {
		String result = null;
		result = HttpUtils.submitPostData(url, addtionalParams, "UTF-8");
		System.out.println("reuslt---->" + result);
		return result;
	}
}
